package com.air.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Employee implements Serializable {
    private static final int serialVersionUID = 1;

    @TableId(value = "eid", type = IdType.AUTO)
    private Integer eid;
    private String ename;
    private String esex;
    private Integer eage;
    private String addr;
    private Integer did;
    @TableField(exist = false)
    private String dname;

    @TableLogic(value = "0",delval = "1")
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
